package day114;
/**
@Auther: MFM
@Date: 2021/11/4 - 11 - 04 - 18:49 
@version: 1.0
*/

public class draw extends Thread{
    private Account account = null;

    public draw(Account account,String name) {
        super(name);
        this.account = account;
    }

    @Override
    public void run() {
        try{
            while (true){
                this.account.draw();
            }
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
